package com.topmap.service;

import com.topmap.error.BusinessException;
import com.topmap.service.model.ArticleModel;

import java.util.List;

/**
 * @Author: MaHuadong
 * @Date: 2019/7/18 13:13
 * @Version 1.0
 */
public interface ArticleService {

    //articlemodel内完成用户发表文章的整套流程
    void postArticle(ArticleModel articleModel) throws BusinessException;


    //获取所有的发帖文章
    List<ArticleModel> listArticle();
}
